<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ attribute name="href" type="java.lang.Object" required="true"
%><%@ attribute name="id" type="java.lang.String"
%><%@ attribute name="key" type="java.lang.String"
%><%@ attribute name="text" type="java.lang.String"
%><%@ attribute name="icon" type="java.lang.String"
%><%@ attribute name="cssClass" type="java.lang.String"
%><c:url var="encodedUrl" value="${href}" /><%
String _id = id != null ? " id=\"" + id + "\"" : "";
String spanIconStart = "";
String spanIconEnd = "";
if (icon != null) {
	spanIconStart = "<span class=\"" + icon + "\">&nbsp;";
	spanIconEnd = "</span>";
}
String _cssClass = cssClass != null ? " " + cssClass : "";
%><a href="${encodedUrl}"<%=_id %> class="sexybutton<%=_cssClass%>"><span><span><%= spanIconStart %><c:choose><c:when test="${key != null}"><fmt:message key="${key}"/></c:when><c:otherwise>${text}</c:otherwise></c:choose><%= spanIconEnd %></span></span></a>